<template>
  <el-table
    :data="tableData"
    border
    style="width: 100%">
    <el-table-column
      prop="username"
      label="登入账户"
      width="180">
    </el-table-column>
    <el-table-column
      prop="lastLogin.ip"
      label="上次登录ip"
      width="180">
    </el-table-column>
    <el-table-column
      prop="lastLogin.loginTime"
      label="上次登录时间">
    </el-table-column>
     <el-table-column
      prop="nowLogin.ip"
      label="本次登录ip">
    </el-table-column>
     <el-table-column
      prop="nowLogin.loginTime"
      label="本次登录事件">
    </el-table-column>
  </el-table>
</template>

<script>
import { getlog } from '../../../api'
  export default {
    data() {
      return {
         tableData:{
        

         }
           

        
      }
    },
    mounted(){
       getlog()
       .then(res=>{        
          let data=res.data.data
         //  console.log(data);
          this.tableData=data
       })
    }
  }
</script>
